<?php
class C_reportchecklist extends CI_Controller {
	function __construct(){
		parent::__construct();
		checkLogin();
		$this->load->model('m_reportchecklist');
	}
	
	function index(){
		$task = secure_post('task');
		switch($task){
			default :
				$data["data"] = $this->m_reportchecklist->data();
				$html = $this->load->view('v_reportchecklist', $data, true);
                echo $html;
                $data["print"] = "ya";
				$html = $this->load->view('v_reportchecklist', $data, true);
				$file = fopen("print/reportchecklist.html","w+");
				fwrite($file,$html);
				fclose($file);
		}
	}

}